package com.tao.to;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.tao.base.BaseEntity;


/**
 * The persistent class for the sp_user database table.
 * 
 */
@Entity
@Table(name="t_user")
public class UserTO extends BaseEntity implements Serializable{
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="USER_ID", nullable=false, length=50)
	@GeneratedValue(generator = "generator")
	@GenericGenerator(name = "generator", strategy = "uuid2")
	private String userId;
	
	@Column(name="TAO_PID", length=255)
	private String taoPid;
	
	@Column(name="USER_NAME", length=50)
	private String userName;
	
	@Column(name="MOBILE_NUM", length=50)
	private String mobileNum;
	
	@Column(length=255)
	private String email;
	
	@Column(name="STATUS", length=50)
	private String status;

	//bi-directional many-to-one association to User2ProductTO
	@OneToMany(mappedBy="userTO")
	private List<User2ProductTO> user2Products;

	public UserTO() {
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getTaoPid() {
		return taoPid;
	}

	public void setTaoPid(String taoPid) {
		this.taoPid = taoPid;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getMobileNum() {
		return mobileNum;
	}

	public void setMobileNum(String mobileNum) {
		this.mobileNum = mobileNum;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public List<User2ProductTO> getUser2Products() {
		return user2Products;
	}

	public void setUser2Products(List<User2ProductTO> user2Products) {
		this.user2Products = user2Products;
	}


}